home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15300 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  46 lines

  1. Newsgroups: comp.lang.c
  2. Path: phcoms4.seri.philips.nl!misf1!Pvestjen
  3. From: Pvestjen@ms.philips.nl (Patrick Vestjens)
  4. Subject: Re: PUBLIC / PRIVATE
  5. Message-ID: <1996Apr18.085541.21233@ms.philips.nl>
  6. Sender: news@ms.philips.nl
  7. Organization: Philips Medical Systems, Best
  8. X-Newsreader: TIN [version 1.2 PL2]
  9. References: <4l3k8d$hkp@mulga.cs.mu.OZ.AU>
  10. Date: Thu, 18 Apr 1996 08:55:41 GMT
  11.  
  12. Falchion (simc@mundil.cs.mu.OZ.AU) wrote:
  13. : I'm analysing some C source code and I've
  14. : come across PUBLIC and PRIVATE keywords
  15.  
  16. : eg PUBLIC char * app_name = "Lynx";
  17.  
  18. :    PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
  19. :                     s, int, l) { fwrite(s, 1, l, me->fp) }
  20.  
  21.  
  22. : I though C didn't have PUBLIC or PRIVATE ?
  23. : It definitely doesn't look like C++ source code - it looks like
  24. : C code with PUBLIC and PRIVATE keywords scattered everywhere.
  25.  
  26. Aren't those PUBLIC and PRIVATE 'keywords' in fact macro's?
  27.  
  28. : 2nd question:
  29. :    PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
  30. :                     s, int, l) { fwrite(s, 1, l, me->fp) }
  31.  
  32. :    What is the ARGS3 ?
  33. :    I'm accustomed to 
  34. :     return_type function_name(args) { ... }
  35.  
  36. Same here, could the ARGS3 be a macro? I've seen code using this kind of
  37. structure before, for example using a macro named PROTO. I think it is
  38. used to abstract from the prototype notation.
  39.  
  40. Regards, Patrick.
  41. -- 
  42.  Patrick Vestjens                          Email: Pvestjen@best.ms.philips.com 
  43.  Philips Medical Systems  Postbus 10,000   Phone: 31 40 2762767
  44.  ICS Department           5680 DA Best     Fax:   31 40 2763393
  45.  Building QP-1.124        The Netherlands
  46.